// 
//  JKAudioTool.h
//  02-播放音效
// 
//  Created by albert on 16/4/7.
//  Copyright (c) 2016年 albert. All rights reserved.
// 

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface JKAudioTool : NSObject

#pragma mark - 播放音效
/** 仅返回对应的播放器 */
+ (AVAudioPlayer *)playerWithMusicName:(NSString *)musicName;
/** 播放音乐 */
+ (void)playMusicWithMusicName:(NSString *)musicName;
/** 暂停音乐 */
+ (void)pauseMusicWithMusicName:(NSString *)musicName;
/** 停止音乐 */
+ (void)stopMusicWithMusicName:(NSString *)musicName;


#pragma mark - 播放音效
/** 播放音效 */
+ (void)playSoundWithSoundName:(NSString *)soundName;
@end
